package com.example.mylog.service;

import com.example.mylog.mapper.UserMapper;
import com.example.mylog.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class UseServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> getAllUser(int beginPage, int pageSize) {
        return userMapper.getAllUser(beginPage,pageSize);
    }

    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }

    @Override
    public List<User> getUserByTime(Date beginTime, Date endTime) {
        return userMapper.getUserByTime(beginTime,endTime);
    }

    @Override
    public void insertMore(List<User> list) {
     userMapper.insertMore(list);
    }

    @Override
    public List<User> getUsers(Map<String, Object> map) {
        return userMapper.getUsers(map);
    }
}
